var path = require ('./config/path.json');
exports.path = path;
exports.session = require ('./config/session.json'); 
exports.site = require ('./config/site.json');
exports.etc = require ('./config/etc.json'); 
exports.api = require ('./config/api.json'); ;
exports.virtualHost = require('./config/virtual_host.json'); 

exports.setAbsPath = function (webRoot) {
	webRoot += '/';
	for (var p in path){
		if (p != 'webRoot' && path[p][0] != '/') {
			path[p] = webRoot + path[p];
			}
		}
	path.webRoot = webRoot;
	
}
